package restPROC;

import java.sql.SQLException;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import dao.daoAndrKlijent;
import utilClasses.ListaKlijentPodaci;

@Path("/Aklijent") 
public class Klijent {
	@GET
	@Path("/daj")
	@Produces({"application/xml"})
	public ListaKlijentPodaci dajSve(@QueryParam("lat") String sirina, @QueryParam("lgt") String duzina)
	{
		ListaKlijentPodaci rez=new ListaKlijentPodaci();
		System.out.println("Radi!!");
		try {
			rez=daoAndrKlijent.dajLinije(Double.parseDouble(sirina),Double.parseDouble(duzina));
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return rez;
	}

}
